<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Student List</title>
</head>
<body>
Teacher Id: <span th:text="${teacher.id}"/> Name: <span th:text="${teacher.name}"/>
<table border="1">
    <tr>
        <td>ID</td>
        <td>NAME</td>
    </tr>
    <tr th:each="student: ${studentList}">
        <td th:text="${student.id}"></td>
        <td th:text="${student.name}"></td>
    </tr>
</table>
</body>
</html>